package com.jl.commons.quartz.job;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.quartz.QuartzJobBean;

import java.util.Date;


/**
 * 该任务功能主要用于每天零点校验所有的零件寿命，用于提醒快到寿命的
 */
public class CheckComponentLifeJob extends QuartzJobBean {

    private static Logger log = LoggerFactory.getLogger(CheckComponentLifeJob.class);


    @Override
    protected void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        log.info("开始执行对零件寿命的校验；执行时间: " + new Date());
        //TODO
    }
}
